import { createApp } from 'vue'
import './style.css';
import 'ant-design-vue/dist/reset.css';

import { setupRouter } from './router';

import App from './App.vue'









async function setupApp() {

  let script = document.createElement('script');
  script.src = "https://cdn.jsdelivr.net/npm/mathpix-markdown-it@2.0.14/es5/bundle.js";
  document.head.append(script);

  script.onload = async ()=> {
    const isLoaded = window.loadMathJax();
    if (isLoaded) {

      const app = createApp(App);
      await setupRouter(app);
      app.mount('#app');
    }
  }

}

setupApp();